package chapter4;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;

public class Composite_  extends MouseKey{

	public Composite_(Composite parent) {
		super(parent);
		Button launch = new Button(this, SWT.PUSH);
		launch.setText("launch");
		launch.setLocation(40, 120);
		launch.pack();

		launch.addMouseListener(new MouseAdapter(){
			@Override
			public void mouseDown(MouseEvent e) {
				statusContributions sw = new statusContributions();
				sw.open();
			}
		});
		
		
	}
}
